package com.xinghen.validate;

import org.springframework.validation.ObjectError;

import java.util.List;

/**
 * @author xinghen
 * @ClassName: ValidateException
 * @Package: com.xinghen.validate
 * @Description 自定义异常
 * @create 2018/04/08 21:07
 */
public class ValidateException extends RuntimeException {

    private List<ObjectError> errors;

    public ValidateException(List<ObjectError> errors) {
        this.errors = errors;
    }

    public List<ObjectError> getErrors() {
        return errors;
    }

    public void setErrors(List<ObjectError> errors) {
        this.errors = errors;
    }
}
